package com.xbongbong.pro.log.pojo.dto;

import com.xbongbong.saas.enums.OperateModuleTypeEnum;
import com.xbongbong.saas.enums.OperateTypeEnum;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.List;

/**
 * @author: yingjianfeng
 * @date: 2022/4/14 09:58
 * @description:
 */
@Getter
@Setter
@ToString
public class DeleteBatchOperationLogDTO {
    /**
     * 公司ID
     */
    private String corpid;
    /**
     *操作人ID
     */
    private String opUserId;
    /**
     *操作人姓名
     */
    private String opUserName;
    /**
     *操作模块枚举，用于日志记录
     */
    private OperateModuleTypeEnum operateModuleType;
    /**
     *操作类型枚举，用于日志记录
     */
    private OperateTypeEnum operateType;
    /**
     *所属对象ID
     */
    private String opObjectId;
    /**
     *操作对象名称
     */
    private String opObjectName;
    /**
     *备注
     */
    private String memo;
    /**
     * 删除的数据条数
     */
    private Integer allowDeleteDataSize;
    /**
     * httpHeader
     */
    private String httpHeader;
    /**
     * 表单id
     */
    private Long formId;
    /**
     * 业务类型
     * @see com.xbongbong.saas.enums.XbbRefTypeEnum
     */
    private Integer businessType;


    public DeleteBatchOperationLogDTO(){

    }

    public DeleteBatchOperationLogDTO(String corpid, String opUserId, String opUserName, OperateModuleTypeEnum operateModuleType, OperateTypeEnum operateType, String opObjectId, String opObjectName, String memo, Integer allowDeleteDataSize, String httpHeader, Long formId, Integer businessType) {
        this.corpid = corpid;
        this.opUserId = opUserId;
        this.opUserName = opUserName;
        this.operateModuleType = operateModuleType;
        this.operateType = operateType;
        this.opObjectId = opObjectId;
        this.opObjectName = opObjectName;
        this.memo = memo;
        this.allowDeleteDataSize = allowDeleteDataSize;
        this.httpHeader = httpHeader;
        this.formId = formId;
        this.businessType = businessType;
    }
}
